<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Log;

class ProfitSharingReceiver extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'profit_sharing_receiver';

    public $fillable = [
        'profit_sharing_account_id',
        'type',
        'name',
        'account',
        'relation_type',
        'amount',
        'desc',
        ];

    public function profitSharingAccount()
    {
        return $this->belongsTo(ProfitSharingAccount::class,'profit_sharing_account_id');
    }

}
